// scripts/deploy_upgradeable_box.js
const { ethers, upgrades } = require("hardhat");

async function main() {
    const Box2 = await ethers.getContractFactory("Box2");
    console.log("Deploying Box2...");
    const box2 = await upgrades.deployProxy(Box2, [42], { initializer: 'store' });
    await box2.deployed();
    console.log("Box deployed to:", box2.address);
}

main();